package com.dq.Week2.day07.modifier.abs;

/**
 * 子类必须实现父类的抽象方法，否则子类也得是抽象的
 */
public class Fish extends Animal{
    @Override
    public void eat() {
        System.out.println("吐泡泡！！");
        System.out.println("鱼吃饭");
    }

    @Override
    public int sleep() {
        System.out.println("鱼睁着眼睛睡觉");
        return 0;
    }
}